<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .child1{
            width: 300px;
            height: 300px;
            background: red;
        }
        .child2{
            width: 200px;
            height: 200px;
            background: blue;
        }
        .child3{
            width: 100px;
            height: 100px;
            background:yellow ;
        }
    </style>
</head>
<body>
    <div id="app">
        <div @click="child1Click" class="child1">
            <div @click="child2Click" class="child2">
                <div @click.stop="child3Click" class="child3"></div>
            </div>
        </div>
    </div>
    <a href="" @click.prevent=""></a>

    <script src="js/vue.js"></script>

    <script>
        let myApp = new Vue({
            el:'#app',
            data:{

            },
            methods:{
                child1Click(){
                    alert('child1被点击')
                },
                child2Click(){
                    alert('child2被点击')
                },
                child3Click(){
                    alert('child3被点击')
                },
            }
        })    
       
    </script>
</body>
</html>